<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/static/commons/taglibs.jsp"%>
<%@ include file="/static/commons/meta.jsp"%>
<%@ include file="/static/commons/ecside.jsp"%>
<%@ include file="/static/commons/jquery-easyui.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>${title}</title>
		<link rel="stylesheet" href="${ctx }/static/styles/basic/basic.css" ></link>
		<link rel="stylesheet" href="${ctx }/static/styles/frame/main.css" ></link>
		<link rel="stylesheet" href="${ctx }/static/styles/frame/searchBtn.css" ></link>
		<link rel="stylesheet" href="${ctx }/static/styles/frame/searchCondition.css" ></link>
		<script type="text/javascript" src="${ctx}/static/scripts/check_all.js"></script>
		<script type="text/javascript">
			function changeStyle(obj){
			  	ec_showContent(obj,"700px");
			}
			function searchParts(){
				$('#ec input[name="ec_f_parts_code"]').val($("#partsCode_").val());
				$('#ec input[name="ec_f_parts_name"]').val($("#partsName_").val());
				ECSideUtil.reload('ec');
			}
		</script>
	</head>
	<body>
		<form id="form1" action="${ctx}/myInspect/chooseParts" method="post">
  			<input type="hidden" name="RequestVerificationToken" value="${RequestVerificationToken}"></input>
			<div class="width_100 group_box">
				<div class="group_search width_100">
					<vvise:searchInput id="partsCode_" displayText="配件编号" defVal="${obj.partsCode }" />
					<vvise:searchInput id="partsName_" displayText="配件名称" defVal="${obj.partsName }" />
					<div class="message2" style="margin: -3px 0px; width: 100px;">
						<div class="btn">
							<ul>
								<li class="search_btn" onclick="searchParts();"><a href="javascript:void(0)">查&nbsp;询</a></li>
							</ul>
						</div>
					</div>
			        <div class="clear_both"></div>
				</div>
			</div>
        </form>
		<ec:table items="partsList" var="v" title="" width="100%" style="margin-top: 5px;"
			retrieveRowsCallback="process" filterRowsCallback="limit"
			maxRowsExported="1000" pageSizeList="10,20,30,all" useAjax="false"
			rowsDisplayed="10" sortable="false" filterable="true" 
			resizeColWidth="true" classic="true" minHeight="200"
			excludeParameters="checkAll,ID_,id"
			toolbarContent="extend status|pagejump|navigation|pagesize|refresh"
			action="${ctx}/myInspect/chooseParts">
			<ec:row style="text-align:center;">
				<ec:column property="PID_"
					title="<input type='checkbox' name='checkAll' onclick='check_all(this.form,this.form.id)'>"
					style="text-align:center;width:34px;" sortable="false">
					<input type='checkbox' value='${v.parts_id }||${v.parts_name }[${v.parts_code }]' name='id' id="id"
						onclick="check_item(this.form,this.form.id)" <c:if test="${not empty v.flag}">checked="checked"</c:if>></input>
				</ec:column>
				<ec:column width="30" property="_0" title="序号" value="${GLOBALROWCOUNT}"/>  
				<ec:column property="parts_code" title="配件编号">${v.parts_code }</ec:column>
				<ec:column property="parts_name" title="配件名称">${v.parts_name }</ec:column>
				<ec:column property="parts_spec" title="规格/型号">${v.parts_spec }</ec:column>
			</ec:row>
		</ec:table>
	</body>
</html>